export default {
  pages: [
    'pages/index/index'
    // 'pages-calculator/index',
    // 'pages/currency-converter/index',
    // '/index',
    // 'pages-mfa/index',
    // 'pages/totp-generator/index'
    // 'pages/password-generator/index'
  ],
  networkTimeout: {
    request: 10000,
    downloadFile: 10000,
    uploadFile: 1200000
  },
  subpackages: [
    {
      root: 'pages-recipe',
      name: 'daily-recipe',
      pages: ['index', 'ingredients', 'generate', 'search', 'detail'],
      independent: false
    },
    {
      root: 'pages-qrcode',
      name: 'qrcode',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-dk',
      name: 'dk',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-unit-converter',
      name: 'unit-converter',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-date-calculator',
      name: 'date-calculator',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-mfa',
      name: 'mfa',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-totp-generator',
      name: 'totp-generator',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-calculator',
      name: 'calculator',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-layoff',
      name: 'pages-layoff',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-bmi',
      name: 'bmi-calculator',
      pages: ['index'],
      independent: false
    },
    {
      root: 'pages-mbti',
      name: 'mbti-test',
      pages: ['index', 'detail'],
      independent: false
    }
  ],
  lazyCodeLoading: 'requiredComponents',
  // __usePrivacyCheck__: true,
  requiredBackgroundModes: ['audio'],
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于小程序位置接口的效果展示' // 小程序的必要权限
    },
    'scope.userFuzzyLocation': {
      desc: '获取位置信息以展示当前所在城市' // 高速公路行驶持续后台定位
    },
    'scope.camera': {
      desc: '需要使用您的相机进行二维码扫描' // 相机扫码权限
    },
    'scope.writePhotosAlbum': {
      desc: '保存二维码到您的相册中' // 保存图片到相册权限
    }
  },
  requiredPrivateInfos: ['getFuzzyLocation'],
  plugins: {},
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: '实用工具集合',
    navigationBarTextStyle: 'black'
  },
  cloud: true
  // tabBar: {
  //   color: '#999',
  //   selectedColor: '#1890ff',
  //   backgroundColor: '#fff',
  //   borderStyle: 'black',
  //   list: [
  //     {
  //       pagePath: 'pages/index/index',
  //       text: '工具',
  //       iconPath: 'assets/icons/tools.png',
  //       selectedIconPath: 'assets/icons/tools-active.png'
  //     }
  //     // 可以根据需要添加更多标签页
  //   ]
  // }
}
